local tick = 0
function DieinSpace()
	if CurTime() > tick then
		for num,ply in pairs(player.GetAll( )) do
			local proppos = ply:GetPos()
			local station = CheckPoint(proppos.x,proppos.y,proppos.z,"Station") 
			local stationbig = CheckPoint(proppos.x,proppos.y,proppos.z,"StationBig") 
			local plyuni = ply:UniqueID()
				if servertable["ply"][plyuni]["InNpcFight"]  then
					if servertable["ply"][plyuni]["LastNpcHit"] < CurTime() then
						servertable["ply"][plyuni]["InNpcFight"] = false
					end
				end
			if station then --ina station
				if not servertable["ply"][plyuni]["InStation"] then
					servertable["ply"][plyuni]["InStation"] = true
					AcualizeMusic(ply)
				end
			elseif stationbig then --inabigstation
				if not servertable["ply"][plyuni]["InBigStation"] then
					servertable["ply"][plyuni]["InStation"] = true
					servertable["ply"][plyuni]["InBigStation"] = true
					AcualizeMusic(ply)
				end
			else --not in a station
				if servertable["ply"][plyuni]["InStation"] then
					servertable["ply"][plyuni]["InStation"] = false
					servertable["ply"][plyuni]["InBigStation"] = false
					AcualizeMusic(ply)
				end
				if not (servertable["ply"][plyuni]["Inpod"]) then
					ply:TakeDamage( 30, "World")
				end
			end	
		end
		tick = CurTime() + 1
	end
end
hook.Add("Tick", "DieinSpace", DieinSpace)


